#include "BrickShader.h"


BrickShader::BrickShader(void):GLSLShader(L"./shaders/vbrick.glsl",L"./shaders/fbrick.glsl")
{
}


BrickShader::~BrickShader(void)
{
}

void BrickShader::UpdateVariables()
{
	GetUniformVariable("LightPosition") =float3(10,-5,10);
	GetUniformVariable("BrickColor") = float3(0.8f,0.2f,0.2f);
	GetUniformVariable("MortarColor") = float3(0.2f,0.2f,0.2f);
	GetUniformVariable("BrickSize") = float2(0.05f,0.05f);
	GetUniformVariable("BrickPct") = float2(0.90f,0.85f);
}

void BrickShader::CreateVariables()
{
	AddUniformVariable("LightPosition");
	AddUniformVariable("BrickColor");
	AddUniformVariable("MortarColor");
	AddUniformVariable("BrickSize");
	AddUniformVariable("BrickPct");
}
